﻿using IOCS.IOCR;

namespace IOCS
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello, World!");

            //使用手写的IOC容器
            //1、创建IOCFactory容器
            IOCFactory iOCFactory = new IOCFactory();

            //2、获取Student对象
            Student student = (Student)iOCFactory.GetObject("IOCS.IOCR.Student");

            //3、使用Student对象
            student.Study();
        }
    }
}
